<style>
    .xh-form .btn{
        margin-right: 0px;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
    td >label{
        float: right;
        margin-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
</style>
<form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%">
            {% if type is defined and type == 'leave' %}
                <tr>
                    <td><label>离职时间</label></td>
                    <td><input name="tLeaveTime" type="date" ></td>
                    <td><label>离职理由</label></td>
                    <td colspan="3"><input name="sLeaveReason" type="text" ></td>
                </tr>
            {% endif %}
            <tr>
               <td><label>职工姓名</label></td>
               <td><input name="sStaffName" type="text" must="true"></td>
               <td><label>职务岗位</label></td>
               <td><input name="sPostName" type="text" ></td>
               <td><label>身份证号</label></td>
               <td><input name="sIdentityCode" type="text"  must="true"></td>
            </tr>
            <tr>
                <td><label>联系电话</label></td>
                <td><input name="sSelfPhone" type="text"  must="true"></td>
                <td><label>入职日期</label></td>
                <td><input name="tHireDate" type="date" must="true"></td>
                <td><label>转正日期</label></td>
                <td><input name="tRegularDate" type="date" ></td>
            </tr>
            <tr>
                <td><label>试用期(月数)</label></td>
                <td><input name="sProbationDate" type="text" ></td>
                <td><label>身份类别</label></td>
                <td>
                    <select name="iOfferStatus" type="text" >
                        <option value="0">身份类别</option>
                        {% if enums['iOfferStatus'] is defined and enums['iOfferStatus'] | length > 0  %}
                            {% for id,text in enums['iOfferStatus'] %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        {% endif %}
                    </select>
                </td>
                <td><label>员工分组</label></td>
                <td>
                    <select name="iWorkStatus" type="text" >
                        <option value="0">员工分组</option>
                        {% if enums['iWorkStatus'] is defined and enums['iWorkStatus'] | length > 0  %}
                            {% for id,text in enums['iWorkStatus'] %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        {% endif %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>性别</label></td>
                <td>
                    <select name="iUserSex" type="text" >
                        <option value="0">性别</option>
                        {% if enums['iUserSex'] is defined and enums['iUserSex'] | length > 0  %}
                            {% for id,text in enums['iUserSex'] %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        {% endif %}
                    </select>
                </td>
                <td><label>出生日期</label></td>
                <td><input name="tBirthday" type="date" must="true"></td>
                <td><label>参加工作时间</label></td>
                <td><input name="tStartWork" type="month" ></td>
            </tr>
            <tr>
                <td><label>民族</label></td>
                <td><input name="sNationName" type="text" ></td>
                <td><label>籍贯</label></td>
                <td><input name="sNativePlace" type="text" ></td>
                <td><label>职称</label></td>
                <td><input name="sPostLevel" type="text" ></td>
            </tr>
            <tr>
                <td><label>最高学历</label></td>
                <td><input name="sCultureLevel" type="text" ></td>
                <td><label>毕业院校</label></td>
                <td><input name="sGraduateSchool" type="text" ></td>
                <td><label>专业</label></td>
                <td><input name="sProfession" type="text" ></td>
            </tr>
            <tr>
                <td><label>合同期限</label></td>
                <td><input name="sContentDate" type="text" ></td>
                <td><label>签订次数</label></td>
                <td><input name="iSignNumber" type="text" ></td>
                <td><label>合同领用情况</label></td>
                <td><input name="sContractStatus" type="text" ></td>
            </tr>
            <tr>
                <td><label>社保缴纳开始月份</label></td>
                <td><input name="sSocialPayDate" type="text" ></td>
                <td><label>社保缴纳情况</label></td>
                <td><input name="sSocialPayStatus" type="text" ></td>
                <td><label>意外险缴纳时间</label></td>
                <td><input name="sInsuranceDate" type="text" ></td>
            </tr>
            <tr>
                <td><label>公积金缴纳月份</label></td>
                <td><input name="sSurplusPayDate" type="text" ></td>
                <td><label>公积金基数</label></td>
                <td><input name="sSurplusPayRate" type="text" ></td>
                <td><label>公积金缴纳情况</label></td>
                <td><input name="sSurplusPayStatus" type="text" ></td>
            </tr>
            <tr>
                <td><label>招商银行卡号</label></td>
                <td colspan="3"><input name="sBankCard" type="text" ></td>
                <td><label>支行信息</label></td>
                <td><input name="sBankInfo" type="text" ></td>
            </tr>
            <tr>
                <td><label>紧急联络人</label></td>
                <td><input name="sContractName" type="text" ></td>
                <td><label>与本人关系</label></td>
                <td><input name="sContractRelation" type="text" ></td>
                <td><label>联系人电话</label></td>
                <td><input name="sContractPhone" type="text" ></td>
            </tr>
            <tr>
                <td><label>婚否</label></td>
                <td>
                    <select name="bMarried" type="text" >
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </td>
                <td><label>备注</label></td>
                <td colspan="3"><input name="sRemark" type="text" ></td>
            </tr>
            <tr>
                <td><label>户籍地址</label></td>
                <td  colspan="3">
                    <input name="sFamilyAddress" type="text" >
                </td>
                <td><label>户籍性质</label></td>
                <td>
                    <select name="iRegisterType" type="text" >
                        <option value="0">户籍性质</option>
                        {% if enums['iRegisterType'] is defined and enums['iRegisterType'] | length > 0  %}
                            {% for id,text in enums['iRegisterType'] %}
                                <option value="{{ id }}">{{ text }}</option>
                            {% endfor %}
                        {% endif %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>现居住地</label></td>
                <td  colspan="3">
                    <input name="sNowAddress" type="text" >
                </td>
                {% if type is defined and type == 'leave'  %}
                    <td><label>是否特殊</label></td>
                    <td>
                        <select name="bSpecial">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                    </td>
                {% endif %}
                {% if type is defined and type == 'special'  %}
                <td><label>是否特殊</label></td>
                <td>
                   <b style="color: red">是</b>
                </td>
                {% endif %}
            </tr>
        </table>
    </div>
</form>